import { ApiProperty } from '@nestjs/swagger';
import { Role } from '../../role/entities/role.entity';

export class CreateUserDto {
  @ApiProperty({ example: 'admin1', description: '用户名' })
  username: string;

  @ApiProperty({ example: 'admin1', description: '昵称' })
  nickname: string;

  @ApiProperty({ example: 'admin1', description: '密码', default: '123456' })
  password?: string;

  @ApiProperty({ example: '16645409938', description: '电话' })
  phone?: string;

  @ApiProperty({ example: '男', description: '性别' })
  gender?: string;

  @ApiProperty({ example: '安徽省安庆市', description: '地址' })
  address?: string;

  @ApiProperty({ example: '331126135@qq.com', description: '邮箱' })
  email: string;

  @ApiProperty({ example: '331126135@qq.com', description: '头像' })
  avatar?: string;

  @ApiProperty({ example: '2000-02-22', description: '出生日期' })
  birthday?: Date;

  @ApiProperty({ example: { id: '1' }, description: '角色', required: false })
  role?: Role;

  @ApiProperty({ example: '每日自学', description: '座右铭' })
  saying?: string;
}
